/**
 * Project Name:lee
 * File Name:HandleLogServiceImpl.java
 * Package Name:com.lee.system.service.impl
 * Date:2017年1月9日下午4:43:50
 * Copyright (c) 2017, chenzhou1025@126.com All Rights Reserved.
 *
*/

package com.lee.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lee.system.mapper.HandleLogMapper;
import com.lee.system.model.HandleLog;
import com.lee.system.service.HandleLogService;

/**
 * ClassName:HandleLogServiceImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2017年1月9日 下午4:43:50 <br/>
 * @author   dell
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
@Transactional
@Service
public class HandleLogServiceImpl implements HandleLogService {
	@Autowired
	private HandleLogMapper handleLogMapper;
	
	@Override
	public int count(HandleLog t) {

		return handleLogMapper.count(t);
	}
	
	@Override
	public int insert(HandleLog t) {
		int i = handleLogMapper.insert(t);
		return i;
	}

	@Override
	public int update(HandleLog t) {

		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(int id, boolean flag) {
		int i = 0;
		if(flag){
			i = handleLogMapper.delete(id);
		}
		return i;
	}

	@Override
	public HandleLog findById(int id) {

		// TODO Auto-generated method stub
		return handleLogMapper.findById(id);
	}

	@Override
	public List<HandleLog> findByPid(int id) {

		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<HandleLog> findByConent(HandleLog han) {
		
		return handleLogMapper.findByConent(han);
	}

	@Override
	public List<HandleLog> findByPage(Map<String, Object> map) {
		
		return handleLogMapper.findByPage(map);
	}

}

